There are closely related ideas known by different names, such as Goodhart's law and the Lucas critique.